package com.yu.Service;

import com.yu.POJO.*;
import com.yu.tool.*;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: LittleFisher
 * @Date: 2021/05/31/19:44
 * @Description:
 */
public interface  AdminService {
    //admin
    public MyJson adminLogin(String name,String password);
    public Admin getAdminByName(String name);

    //stu
    public pageTool getAllStuInfo(int page, int rows);
    public pageTool getAllStuInfoWithClazz(int page, int rows,int clazz_id);
    public MyJson adDelStuById(int id);
    public MyJson adUpStuInfo(Student stu);
    public MyJson adAddStu(Student stu);
    public pageTool getStuByStr(String str);

    //clazz
    public List<Clazz> getAllClazz();
    public List<Dept> getAllDept();
    public MyJson adDelClazz(int id);
    public MyJson adAddClazz(Clazz clazz);
    public MyJson adUpClazz(Clazz clazz);

    //course
    public pageTool getAllCourse(int page, int rows);
    public MyJson delCourse(int id);
    public MyJson upCourse(Course course);
    public MyJson addCourse(Course course);
    public pageTool getRequiredCourse(int page, int rows, String c_type);
    public MyJson clazzJoinCourse(int clazz_id, int course_id);
    public pageTool getAllSC(int page,int rows);
    public List<CC> getAllCC();

    //teacher
    public List<Teacher> getAllTea();
    public MyJson addTea(Teacher teacher);
    public MyJson upTea(Teacher teacher);
    public MyJson delTea(int id);
    public pageTool getAllTeaWithPage(int page, int rows);

    //notice
    public MyJson saveNews(Notice notice);
    public List<Notice> getAllNotice();
    public MyJson AdDelNotice(int id);
    public Notice getNewsById(int id);
}
